Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

feat: utils - re-export @polkadot/util as dotUtils #43

Closed
wants to merge 2 commits into from
Closed

feat: utils - re-export @polkadot/util as dotUtils #43

wants to merge 2 commits into from

Conversation

nicolad
Copy link

@nicolad nicolad commented Apr 7, 2023

Resolves #29

  • There is an associated issue (required)
  • The change is described in detail
  • There are new or updated tests validating the change (if applicable)

image

@@ -1,5 +0,0 @@
import { assert } from 'https://deno.land/[email protected]/testing/asserts.ts';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DoubleOTheven hope the removal is fine here

@@ -3,3 +3,4 @@ export * from './contracts/mod.ts';
export * from './getExpiredItem.ts';
export * from './parseUnits.ts';
export * from './pseudoRandomId.ts';
export * from './units/mod.ts';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw mod.ts approach in a different folder and followed up that.

@@ -14,7 +14,10 @@ interface RemoveContractEvent {

type Action = AddContractEvent | RemoveContractEvent;

export function contractEventReducer(state: ContractEvents, action: Action): ContractEvents {
export function contractEventReducer(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there is a lot of formatting. Does your IDE have a different config for max character length, etc?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was just deno fmt, should I revert this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted the change, if needed or if u want can create a separate PR with deno fmt

@nicolad nicolad changed the title feat: utils - bn.js utility wrappers. feat: utils - re-export @polkadot/util as dotUtils Apr 8, 2023
@DoubleOTheven
Copy link
Contributor

DoubleOTheven commented May 19, 2023

I just exported everything using the deno -> dnt way and release in version 1.1.0

This is how you set up a new import path. e.g. import * as U from 'useink/utils'

And I export here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create helper functions for formatting Big Numbers in BN.js
2 participants